<%--
  @author Duminda Dharmakeerthi
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<script src="${pageContext.request.contextPath}/js/printer.js" type="text/javascript"></script>
<%--<link rel="stylesheet" href="${pageContext.request.contextPath}/css/printDetailForm.css" media="print"/>--%>

<s:include value="../../printCaller.jsp"/>

<div id="printDivId" class="form-outer">
    <h2><s:label value="%{getText('detailed_land_info.label')}"/> - <s:label
            value="%{getText('special_grant.label')}"/></h2>
    <hr/>
    <s:if test="hasActionErrors() || hasActionMessages()">
        <div id="message-box" class="message-box">
            <div class="action-msg"><s:actionmessage/></div>
            <div class="action-err"><s:actionerror/></div>
        </div>
    </s:if>
    <s:form id="gov-land-detail-info-form" method="POST">
        <div id="tabs">
            <%--<div id="printbtn" class="form-button-div right-align">
                    &lt;%&ndash;<input type="button" value="Print" id="print"  class="print-btn">&ndash;%&gt;
                <input type="button" value="Print" onclick="printPage();">
                <input class="printButton" type="button" value="Back" onclick="goBack();">

            </div>--%>


            <div id="land-details">
                <h3><s:label value="%{getText('land_details.label')}"/></h3>
                <table class="width-100">

                    <s:include value="../landDetailsReport.jsp"/>
                </table>
                <hr/>
            </div>

            <div id="special-grant-details">
                <h3><s:label value="%{getText('special_grant_details.label')}"/></h3>
                <table class="width-100">
                    <tr>
                        <td><s:label value="%{getText('reference_no.label')}"/></td>
                        <td><s:label name="alienation.referenceNo"/></td>
                        <td><s:label value="%{getText('date_of_approved.label')}"/></td>
                        <td><s:label name="alienation.issueDate"/></td>
                    </tr>
                    <tr>
                        <td><s:label value="%{getText('folio_no.label')}"/></td>
                        <td><s:label id="folioNo" name="alienation.folioNumber" cssClass="width-200-px"/></td>
                        <td><s:label value="%{getText('folio_date.label')}"/></td>
                        <td><s:label id="folioDate" name="alienation.folioDate" cssClass="width-200-px"/></td>
                    </tr>
                    <tr>
                        <td><s:label value="%{getText('folio_location.label')}"/></td>
                        <td colspan="3"><s:label id="folioLocation" name="alienation.folioLocation"
                                                 cssClass="width-595-px" rows="1"/></td>
                    </tr>
                    <tr>
                        <td><s:label value="%{getText('permitted_usage.label')}"/></td>
                        <td colspan="3"><s:label name="alienation.permittedUsage.id" cssClass="width-595-px"/></td>
                    </tr>
                    <tr>
                        <td><s:label value="%{getText('present_usage.label')}"/></td>
                        <td colspan="3"><s:label name="alienation.currentLandUsage.id" cssClass="width-595-px"/></td>
                    </tr>
                    <tr>
                        <td><s:label value="%{getText('valuation.label')}"/> <s:label
                                value="%{getText('rs.label')}"/></td>
                        <td><s:label name="alienation.valuation" cssClass="width-200-px"/></td>
                        <td><s:label value="%{getText('payment_date.label')}"/></td>
                        <td><s:label name="alienation.paymentDate" cssClass="width-200-px"/></td>
                    </tr>
                    <tr>
                        <td><s:label value="%{getText('comment_about_alienation.label')}"/></td>
                        <td colspan="3"><s:label name="alienation.alienationComment" cssClass="width-595-px"/></td>
                    </tr>
                </table>
                <hr/>
            </div>

            <div id="personal-details">
                <h3><s:label value="%{getText('holder_details.label')}"/></h3>
                <table class="width-100">
                    <tr>
                        <td><s:label value="%{getText('name_of_land_holder.label')}"/></td>
                        <td colspan="3"><s:label name="alienation.holder.name"
                                                 cssClass="width-610-px"/></td>
                    </tr>
                    <tr>
                        <td><s:label value="%{getText('address_of_the_land_holder.label')}"/></td>
                        <td colspan="3"><s:label name="alienation.holder.contacts.address"
                                                 cssClass="width-610-px"/></td>
                    </tr>
                    <tr>
                        <td><s:label value="%{getText('nic.label')}"/></td>
                        <td colspan="3"><s:label name="alienation.holder.registrationNumberOrNIC"/></td>
                    </tr>
                    <tr>
                        <td><s:label value="%{getText('contact_number.label')}"/></td>
                        <td><s:label value="%{getText('mobile.label')}"/></td>
                        <td><s:label name="alienation.holder.contacts.mobile"/></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><s:label value="%{getText('land_line.label')}"/></td>
                        <td><s:label name="alienation.holder.contacts.landPhone"/></td>
                    </tr>
                    <tr>
                        <td><s:label value="%{getText('email.label')}"/></td>
                        <td colspan="3"><s:label name="alienation.holder.contacts.email"/></td>
                    </tr>
                    <tr>
                        <td><s:label value="%{getText('fax.label')}"/></td>
                        <td colspan="3"><s:label name="alienation.holder.contacts.fax"/></td>
                    </tr>
                </table>
                <hr/>
            </div>
            <s:if test="land.occupiers.size() >0">
            <div id="occupier-details">
                <h3><s:label value="%{getText('occupier_details.label')}"/></h3>
                <table class="width-100">
                    <s:include value="../occupierDetailsReport.jsp"/>
                </table>
                <hr/>
            </div>

        </s:if>

        </div>
    </s:form>
</div>
<s:hidden id="pls_enter_reference_no" value="%{getText('pls_enter_reference_no')}"/>
<s:hidden id="pls_enter_name_of_the_land" value="%{getText('pls_enter_name_of_the_land')}"/>
<s:hidden id="pls_enter_plan_no" value="%{getText('pls_enter_plan_no')}"/>
<s:hidden id="pls_enter_lot_no" value="%{getText('pls_enter_lot_no')}"/>
<s:hidden id="pls_enter_valid_no" value="%{getText('pls_enter_valid_no')}"/>
<s:hidden id="pls_select_gn_division" value="%{getText('pls_select_gn_division')}"/>